import request from '@/utils/request'


export default {
  // 讲师列表（综合查询带分页）
  getTeacherListPage(current,limit,eduTeacherVo){
  return request({
    url: `/eduservice/teacher/pageTeacherCondition/${current}/${limit}`,
    method: 'post',
    //eduTeacherVo条件的对象，后段使用RequestBody获取数据
    //data：表示把对象转换成json进行传递到接口里面
    data:eduTeacherVo
  })
  },
  //删除
  deleteTeacherId(id){
    return request({
      url:`/eduservice/teacher/${id}`,
      method:'delete'
    })
  },
  //添加
  addTeacher(teacher){
    return request({
      url:`/eduservice/teacher/addTeacher`,
      method:'post',
      data:teacher
    })
  },
  //根据id查询
  getTeacherInfo(id){
    return request({
      url:`/eduservice/teacher/getTeacher/${id}`,
      method:'get'
    })
  },

  //修改讲师傅
  updateTeacher(teacher){
    return request({
      url:`/eduservice/teacher/updateTeacher`,
      method:'post',
      data:teacher
    })
  },




}
